package com.gagakuai.domain.rules;

import com.gagakuai.domain.conditions.Condition;
import com.gagakuai.infrastructure.constant.Constants;
import lombok.Data;

import java.util.List;

/**
 * @description: 静态规则
 * @author: houhong
 * @create: 2024-09-07 13:50
 **/
@Data
public class StaticRule extends AbstractRule {

    private List<Condition> conditions;

    /*
     *  aviator语法规则的表达式
     */
    private String expression;

    @Override
    public List<Condition> getConditions() {
        return this.conditions;
    }

    /*
     *
     */
    @Override
    public Integer getType() {
        return Constants.STATIC_RULE_TYPE;
    }
}
